package com.jackiechan.day15;

import java.util.*;

public class Test {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(5);
        list.add(2);
        list.add(3);
        list.add(4);
        System.out.println(list);
        Collections.addAll(list,1,2,3,4);
        System.out.println(list);
        Collections.reverse(list);
        System.out.println(list);
        System.out.println(Collections.max(list));

        List<String> list1 = new ArrayList<>();
        Collections.addAll(list1,"bb","ba","ada","ada");
        System.out.println(Collections.max(list1));

        Set co = new HashSet();
        co.addAll(list);
        System.out.println(co);
    }
}
